﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="zhuanfa.aspx.cs" Inherits="gxxz_zhuanfa" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../css/textarea.css" rel="stylesheet" type="text/css"/>
<title></title>
<style type="text/css"> 

div.RoundedCorner{background: #5AAE18} 

b.rtop, b.rbottom{display:block;background: #FFF} 

b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18} 

b.r1{margin: 0 4px} 

b.r2{margin: 0 3px} 

b.r3{margin: 0 2px} 

b.rtop b.r4, {margin: 0 1px;height: 1px}

.style1 {

	font-size: 13px;

	color: #FFFFFF;

font-weight: bold;

} 

</style>
<script type="text/javascript">
function change(obj,i) {
he=parseInt(obj.style.height);
if (he>=80&&he<=400)
   obj.style.height=he+i+'px';
else 
   obj.style.height='80px';
}
</script>
</head>

<body>
<div align="center">
  <table width="80%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>
  <div class="RoundedCorner"> 
    <div align="center"><b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> <span class="style1">共 享 转 发</span></div>
  </div>
  </td>
    </tr>
  </table>
</div>
<div align="center">
  <table width="80%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
    <tr>
      <td bgcolor="#FFFFFF"><form id="f1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
          <tr>
          <%
              //获取文件的ID
              int id = Int32.Parse(this.Request.Params["id"]);
              
              COM.OA.Entity.files f = COM.OA.BLL.filesBLL.Select(id);
              Session.Add("bfile",f);
            
              //取出文件名
              int startIndex = f.f_filename.LastIndexOf(@"\") + 1;
              string fileName = f.f_filename.Substring(startIndex);
              //取出文件后辍名
              int start = f.f_filename.LastIndexOf(".") + 1;
              string hz = f.f_filename.Substring(start);
              
              //设置文件的图标
              string imgPath = "../img/icon/"+hz+".gif";
              
           %>
            <td bgcolor="#FFFFFF"><table width="99%" height="155" border="0" cellpadding="3" cellspacing="0" bgcolor="#399CA0">
                <tr bgcolor="#FFFFFF">
                  <td height="8" colspan="2"></td>
                  </tr>
                <tr bgcolor="#FFFFFF">
                  <td><div align="right">接收人：</div></td>
                  <td width="511">
                      &nbsp;<asp:DropDownList ID="ddl_bumen" runat="server" AppendDataBoundItems="True"
                          AutoPostBack="True" DataSourceID="lb_ObjectDataSource" DataTextField="dept_department"
                          DataValueField="dept_id" OnSelectedIndexChanged="ddl_bumen_SelectedIndexChanged">
                          <asp:ListItem Selected="True">选择部门</asp:ListItem>
                      </asp:DropDownList>
                      <asp:ObjectDataSource ID="lb_ObjectDataSource" runat="server" SelectMethod="Select"
                          TypeName="COM.OA.BLL.departmentBLL"></asp:ObjectDataSource>
                      &nbsp;<asp:DropDownList ID="ddl_em" runat="server">
                          <asp:ListItem Selected="True">选择对象</asp:ListItem>
                      </asp:DropDownList>&nbsp;
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td rowspan="2"><div align="right">文 件：</div></td>
                  <td>&nbsp;<img src='<%=imgPath %>'>&nbsp;<a href="" target="_blank" title=""><%=fileName %></a>
                      
                      <input name="fname" type="hidden" id="fname" value=""/></td>
                </tr>
                
                <tr bgcolor="#FFFFFF">
                  <td>&nbsp;</td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td width="69"></td>
                  <td>
                      <asp:Button ID="btnfs" runat="server" Text=" 转 发 " OnClick="btnfs_Click" />&nbsp;&nbsp; &nbsp; &nbsp;
                      &nbsp; &nbsp;
                      <input name="reset" type="button" style="FONT-SIZE: 12px; HEIGHT: 27px"   onclick="javascript:history.go(-1)" value= " 取 消 " /></td>
                </tr>
                
            </table></td>
          </tr>
        </table>
      </form></td>
    </tr>
  </table>
</div>
    </body>
</html>
